﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;

namespace formworks.DBO.Core
{
    /// <summary>
    /// 管理数据库会话的工厂接口
    /// </summary>
    public interface IDBSessionFactory
    {
        //IDBSessionFactory(string connectionString);
        //IDBSessionFactory(SqlConnection connection);

        /// <summary>
        /// 打开一个数据库会话
        /// </summary>
        /// <returns></returns>
        DBSession openSession();

        

    }//end class
}//end namespace
